package com.guigu.wujunjieservice.controller;


import com.guigu.wujunjieservice.entity.TStudent;
import com.guigu.wujunjieservice.service.TStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wujunjie
 * @since 2022-02-15
 */
@RestController
@RequestMapping("/wujunjieservice/student")
public class TStudentController {
    @Autowired
    private TStudentService studentService;
    @GetMapping
    public List<TStudent> getList(){
        return studentService.list(null);
    }

}

